package com.andy.note.boot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class TestComponent {

    static{
        System.out.println("Component static successful ");
    }

    public TestComponent() {
        System.out.println("component successful!!!");
    }

    @Bean
    public void test11(){
        System.out.println("component bean successful");
    }

    @PostConstruct
    public void test12(){
        System.out.println("Component PostConstruct successful");
    }
}
